/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Ethnicity Hispanic Mexican</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15848 (C-0-T15836-S15837-S15848-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getEthnicityHispanicMexican()
 * @model extendedMetaData="name='EthnicityHispanicMexican'"
 * @generated
 */
public enum EthnicityHispanicMexican implements Enumerator {
	/**
	 * The '<em><b>21485</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21485_VALUE
	 * @generated
	 * @ordered
	 */
	_21485(0, "_21485", "2148-5"),

	/**
	 * The '<em><b>21519</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21519_VALUE
	 * @generated
	 * @ordered
	 */
	_21519(1, "_21519", "2151-9"),

	/**
	 * The '<em><b>21527</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21527_VALUE
	 * @generated
	 * @ordered
	 */
	_21527(2, "_21527", "2152-7"),

	/**
	 * The '<em><b>21493</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21493_VALUE
	 * @generated
	 * @ordered
	 */
	_21493(3, "_21493", "2149-3"),

	/**
	 * The '<em><b>21535</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21535_VALUE
	 * @generated
	 * @ordered
	 */
	_21535(4, "_21535", "2153-5"),

	/**
	 * The '<em><b>21501</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21501_VALUE
	 * @generated
	 * @ordered
	 */
	_21501(5, "_21501", "2150-1");

	/**
	 * The '<em><b>21485</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21485</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21485
	 * @model literal="2148-5"
	 * @generated
	 * @ordered
	 */
	public static final int _21485_VALUE = 0;

	/**
	 * The '<em><b>21519</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21519</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21519
	 * @model literal="2151-9"
	 * @generated
	 * @ordered
	 */
	public static final int _21519_VALUE = 1;

	/**
	 * The '<em><b>21527</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21527</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21527
	 * @model literal="2152-7"
	 * @generated
	 * @ordered
	 */
	public static final int _21527_VALUE = 2;

	/**
	 * The '<em><b>21493</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21493</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21493
	 * @model literal="2149-3"
	 * @generated
	 * @ordered
	 */
	public static final int _21493_VALUE = 3;

	/**
	 * The '<em><b>21535</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21535</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21535
	 * @model literal="2153-5"
	 * @generated
	 * @ordered
	 */
	public static final int _21535_VALUE = 4;

	/**
	 * The '<em><b>21501</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21501</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21501
	 * @model literal="2150-1"
	 * @generated
	 * @ordered
	 */
	public static final int _21501_VALUE = 5;

	/**
	 * An array of all the '<em><b>Ethnicity Hispanic Mexican</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final EthnicityHispanicMexican[] VALUES_ARRAY =
		new EthnicityHispanicMexican[] {
			_21485,
			_21519,
			_21527,
			_21493,
			_21535,
			_21501,
		};

	/**
	 * A public read-only list of all the '<em><b>Ethnicity Hispanic Mexican</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<EthnicityHispanicMexican> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Mexican</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicMexican get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EthnicityHispanicMexican result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Mexican</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicMexican getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EthnicityHispanicMexican result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Mexican</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicMexican get(int value) {
		switch (value) {
			case _21485_VALUE: return _21485;
			case _21519_VALUE: return _21519;
			case _21527_VALUE: return _21527;
			case _21493_VALUE: return _21493;
			case _21535_VALUE: return _21535;
			case _21501_VALUE: return _21501;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EthnicityHispanicMexican(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //EthnicityHispanicMexican
